package com.example.service;

import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;


@Service
public class OrderService {
   /* @Resource
    private RestTemplate restTemplate;
*/
    @DubboReference(version = "1.0")
    private UserService userService;

   /* public String getOrder() {
        String result = restTemplate.getForObject("http://localhost:9002/user",String.class);
        return result;
    }*/
   public String getOrder() {
       String result = userService.getUser();
       return result;
   }
}
